<template>
    <div class="main-content-right">
        <div class="class-show">
            <div class="title">选择班级</div>
            <div class="right-content">
                <div class="item" v-for="(item, index) in 8" :key="index">
                    <div class="right-content-item">
                        <div class="item-title">智教一班</div>
                        <div class="item-class">
                            <img
                                src="../../../assets/images/personalCenter/tree.png"
                            />
                            <div class="item-class-name">
                                <div
                                    style="font-size: 16px;color:rgba(0,0,0,0.85) ;"
                                >
                                    班主任：良名
                                </div>
                                <div
                                    style="font-size: 14px; color:rgba(0,0,0,0.45) ;"
                                >
                                    学生：35人
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</template>

<script>
export default {
    components: {},
    props: {},
    data() {
        return {};
    },
    computed: {},
    watch: {},
    beforeCreate() {
        // 生命周期钩子：组件实例刚被创建，组件属性计算之前，如 data 属性等
    },
    created() {
        // 生命周期钩子：组件实例创建完成，属性已绑定，但 DOM 还未生成，el 属性还不存在
        // 初始化渲染页面
    },
    beforeMount() {
        // 生命周期钩子：模板编译/挂载之前
    },
    mounted() {
        // 生命周期钩子：模板编译、挂载之后（此时不保证已在 document 中）
    },
    methods: {}
};
</script>

<style lang="scss" scoped>
.main-content-right {
    width: 98%;
    margin-left: 2%;
    min-height: 764px;
    min-width: 860px;
    padding: 24px 0px;
    background: #fff;
    box-sizing: border-box;
    .title {
        font-size: 20px;
    }
}
.class-show {
    margin: 0px 24px;
}
.main-content-right {
    .title {
        font-size: 20px;
    }
    .right-content {
        display: flex;
        flex-wrap: wrap;
        margin: 0 auto;
        padding: 24px 0px;
    }
}
.right-content {
    .item {
        height: 200px;
        width: 270px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}
.right-content-item {
    width: 245px;
    height: 172px;
    background: #ffffff;
    border: 1px solid #e9e9e9;
    opacity: 1;
    border-radius: 2px;
    cursor: pointer;
    .item-title {
        width: 100%;
        box-sizing: border-box;
        padding: 16px 24px;
        font-size: 16px;
        border-bottom: 1px solid #ebeff5;
        color: #2d3440;
    }
    .item-class {
        display: flex;
        align-items: center;
        padding: 16px 24px;
    }
}
.item-class {
    img {
        height: 56px;
        width: 56px;
        border-radius: 50%;
    }
    .item-class-name {
        margin-left: 20px;
        height: 56px;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
    }
}
</style>
